<?php

/* @var $this yii\web\View */

use yii\helpers\Url;
use yii\helpers\Html;
use common\helpers\Render;
use common\models\User;
use common\models\Salary;

$this->addCrumbs('薪酬发放记录', 'salary/salary-list');
$this->title = '薪酬详情';
?>

<div class="box-content gap flyer-form pane">
    <div class="form-item">
        <div class="item-inline">
            <div class="input-title">雇主</div>
            <div class="input-inline input-mid"><?= Render::value($data, 'employer_id').':'.Render::value($data, 'employer.username') ?></div>
        </div>
        <div class="item-inline">
            <div class="input-title">设计师</div>
            <div class="input-inline input-mid"><?= Render::value($data, 'user_id').':'.Render::value($data, 'user.username') ?></div>
        </div>
    </div>
    <div class="form-item">
        <div class="input-title">发放类型</div>
        <div class="input-block input-mid"><?= Salary::$typeSelector[$data->type]['title'] ?></div>
    </div>
    <div class="form-item">
        <div class="input-title">发放金额</div>
        <div class="input-block input-mid"><?= Render::amount($data['amount']) ?></div>
    </div>
    <div class="form-item">
        <div class="input-title">发放状态</div>
        <div class="input-block input-mid"><span class="flyer-status <?= Salary::$statusSelector[$data->status]['status'] ?> thin"><?= Salary::$statusSelector[$data->status]['title'] ?></span></div>
    </div>
    <div class="form-item checker">
        <div class="input-title">备注</div>
        <div class="input-block input-mid"><?= Render::value($data, 'remark') ?></div>
    </div>
</div>